<template>
  <div>
    <el-table
      :data="HouseList"
      :stripe="true"
      style="width: 100%">
      <el-table-column
        prop="hid"
        label="编号">
      </el-table-column>
      <el-table-column
        prop="locationid"
        label="位置编号">
      </el-table-column>
      <el-table-column
        prop="area"
        label="面积(平米)">
      </el-table-column>
    </el-table>
    <router-view/>
  </div>
</template>

<script>
    export default {
        name: "HouseList",
      data(){
          return {
            HouseList:[],
            uid:sessionStorage.getItem("uid"),
            role:sessionStorage.getItem("role")
          }
      },
      created(){
        this.selectMy();
      },
      methods: {

        selectMy(){
          let url=""

          url="/houseinfo/selectByUid/"+this.uid;

          this.axios.get(url).then((resp)=>{
            this.HouseList=resp.data;
          });
        }
      }
    }
</script>

<style scoped>

</style>
